IfSwacd.prototype = new Iface;
IfSwacd.prototype.constructor = IfSwacd;

/**
 *	@class
 *	Classe que implementa o conteudo da aplicação.
 */
function IfSwacd() {
	/**
	* Renderiza o sistema
	* @see Iface#init
	*/
	this.init = function(args) {
		this.render(args);
		return this;
	}

	this.render = function (args) {
		this.topContentPanel = new Ext.Panel ({
			region: 'north',
			contentEl: 'topCont',
			split: true,
			border: false,
			hideBorders: true,
			layout: 'fit',
			height: 250
		});

		this.bottomContentPanel = new Ext.Panel ({
			region: 'center',
			contentEl: 'bottomCont',
			split: true,
			border: true
		});

		this.sidePanel = new Ext.Panel ({
			region: 'west',
			contentEl: 'sideCont',
			split: true,
			border: true,
			width: 250
		});

		this.contentPanel = new Ext.Panel ({
			region: 'center',
			layout: 'border',
			border: false,
			items: [this.topContentPanel, this.bottomContentPanel]
		});

		this.mainPanel = new Ext.Panel ({
			region: 'center',
			layout: 'border',
			border: false,
			items: [this.sidePanel, this.contentPanel]
		});

		this.topApplPanel = new Ext.Panel ({
			region: 'north',
			height: 50
		});
		this.centerApplPanel = new Ext.Panel ({
			region: 'center',
			layout: 'border',
			border: false,
			items: [this.mainPanel]
		});

		this.bottomApplPanel = new Ext.Panel ({
			region: 'south',
			height: 30
		});

		this.applPanel = new Ext.Panel ({
			header: true,
			border: false,
			layout: 'border',
			border: false,
			title: 'SWACD',
			items: [
				this.topApplPanel,
				this.centerApplPanel,
				this.bottomApplPanel
			]
		});

		this.viewPort = new Ext.Viewport({
			layout:'fit',
			items: [
				this.applPanel
			]
		});
	}
}
